﻿using NLog;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mes.Common
{
    public class LogHelper
    {
        private static readonly Logger _logger = LogManager.GetLogger("Mes");
        public static void Debug(string message)
        {
            _logger.Debug(message);
        }
        public static void Trace(string message)
        {
            _logger.Trace(message);
        }
        public static void Error(Exception ex)
        {
            _logger.Error(ex);
        }
        public static void Error(Exception ex,string message)
        {
            _logger.Error(ex,message);
        }
    }
}
